import request from "@/config/request";
import type {PayWallet} from "@/types/pay";

enum API {
    root = "/pay/wallet"
}

/**
 * 支付钱包 API
 */
export const PayWalletApi = {

    // 支付钱包信息
    getPayWallet: async (): Promise<BaseResult<PayWallet>> => {
        return request.get<BaseResult<PayWallet>>({
            url: `${API.root}/get`
        })
    }

}
